<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;

class FileClear extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'file:clear';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Display an inspiring quote';

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
         // 清理PDF文件夹,
         // 清理virimage 文件夹
        $rootbase = base_path().'/public/'; // 根目录
        $array = array('PDF','vrimags');
        foreach($array as $v){
            $path = $rootbase.$v;
            remove($path);
        }
    }
}
